package com.navi.loaddata.pojo;

/**
 * @auther Matthew
 * @Date 2018/3/28
 */
public class LayoutDTO {
  private String factoryName;
  private String productSpecName;
  private String productspecVersion;

  public String getFactoryName() {
    return factoryName;
  }

  public void setFactoryName(String factoryName) {
    this.factoryName = factoryName;
  }

  public String getProductSpecName() {
    return productSpecName;
  }

  public void setProductSpecName(String productSpecName) {
    this.productSpecName = productSpecName;
  }

  public String getProductspecVersion() {
    return productspecVersion;
  }

  public void setProductspecVersion(String productspecVersion) {
    this.productspecVersion = productspecVersion;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof LayoutDTO)) {
      return false;
    }

    LayoutDTO that = (LayoutDTO) o;

    if (factoryName != null ? !factoryName.equals(that.factoryName) : that.factoryName != null) {
      return false;
    }
    if (productSpecName != null ? !productSpecName.equals(that.productSpecName) : that.productSpecName != null) {
      return false;
    }
    return productspecVersion != null ? productspecVersion.equals(that.productspecVersion)
        : that.productspecVersion == null;
  }

  @Override
  public int hashCode() {
    int result = factoryName != null ? factoryName.hashCode() : 0;
    result = 31 * result + (productSpecName != null ? productSpecName.hashCode() : 0);
    result = 31 * result + (productspecVersion != null ? productspecVersion.hashCode() : 0);
    return result;
  }
}
